﻿<Window x:Name="myWindow" x:Class="XTCoverInstrumentor.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="XTCover Instrumentor" Height="500" Width="800" Loaded="Window_Loaded">
    <Window.Resources>
        <LinearGradientBrush x:Key="FaultyBorderBrush" EndPoint="0,20" StartPoint="0,0" MappingMode="Absolute">

            <GradientStop Color="#FFABADB3" Offset="0.05"/>

            <GradientStop Color="#FFE2E3EA" Offset="0.07"/>

            <GradientStop Color="#FFFF0000" Offset="1"/>

        </LinearGradientBrush>

        <LinearGradientBrush x:Key="DefaultBorderBrush" EndPoint="0,20" StartPoint="0,0" MappingMode="Absolute">

            <GradientStop Color="#FFABADB3" Offset="0.05"/>

            <GradientStop Color="#FFE2E3EA" Offset="0.07"/>

            <GradientStop Color="#FFE3E9EF" Offset="1"/>

        </LinearGradientBrush>

    </Window.Resources>
    <Grid Background="Gainsboro">
        
        <Image Height="30" VerticalAlignment="Top" HorizontalAlignment="Left" Width="131">
            <Image.Source>
                <!-- To save significant application memory, set the DecodePixelWidth or  
     DecodePixelHeight of the BitmapImage value of the image source to the desired 
     height and width of the rendered image. If you don't do this, the application will 
     cache the image as though it were rendered as its normal size rather then just 
     the size that is displayed. -->
                <!-- Note: In order to preserve aspect ratio, only set either DecodePixelWidth
         or DecodePixelHeight but not both. -->
                <BitmapImage DecodePixelWidth="200"  
     UriSource="C:\Yuvaraj\Code\MSCoverageReport\XTCoverInstrumentor\images\logo-xt2-new.gif" />
            </Image.Source>
        </Image>
        <Border Margin="15,53,22,22" Padding="22" CornerRadius="20" BorderThickness="2" BorderBrush="Gray" Background="Gainsboro">
            <Border Height="350" Width="700" BorderThickness="1" BorderBrush="Gray">
                <StackPanel x:Name="stckContainer" Height="419">
                    <Expander HorizontalContentAlignment="Stretch" Height="66" Margin="20" VerticalAlignment="Top" Width="675">
                <Expander.Header>
                    <BulletDecorator>
                        <BulletDecorator.Bullet>
                            <Image Width="10"/>
                        </BulletDecorator.Bullet>
                        <TextBlock Margin="20,0,0,0" FontWeight="Bold" TextDecorations="None">Coverage Source Selection</TextBlock>
                    </BulletDecorator>
                </Expander.Header>
                <Expander.Content>
                            <StackPanel x:Name="stkInstrument">  
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="269"></ColumnDefinition>
                                        <ColumnDefinition Width="404*"></ColumnDefinition>
                                    </Grid.ColumnDefinitions>
                                    <TextBlock Margin="54,1.638,52,1.638"> Select coverage report source</TextBlock>
                                    <ComboBox x:Name="cmbSource" Grid.Column="1" Margin="18,0,66,0" SelectionChanged="cmbSource_SelectionChanged" IsDropDownOpen="False" IsSynchronizedWithCurrentItem="True" StaysOpenOnEdit="False" IsEditable="False" IsReadOnly="False" SelectedIndex="0" IsEnabled="True" Width="300"></ComboBox>
                                </Grid>
                                
                                </StackPanel>
                </Expander.Content>
            </Expander>
                    <Expander HorizontalContentAlignment="Stretch" Height="260" Margin="20,-20,20,0" VerticalAlignment="Top" Width="684">
                        <Expander.Header>
                            <BulletDecorator>
                                <BulletDecorator.Bullet>
                                    <Image Width="10"/>
                                </BulletDecorator.Bullet>
                                <TextBlock Margin="20,0,0,0" FontWeight="Bold" TextDecorations="None">Server side coverage execution</TextBlock>
                            </BulletDecorator>
                        </Expander.Header>
                        <Expander.Content>
                            <StackPanel x:Name="stkSource" Height="252">
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="269"></ColumnDefinition>
                                        <ColumnDefinition Width="365*"></ColumnDefinition>
                                        <ColumnDefinition Width="39"></ColumnDefinition>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="30"></RowDefinition>
                                    </Grid.RowDefinitions>
                                    <TextBlock Text="Select test type" Margin="54,4,16,-4"></TextBlock>
                                    <ComboBox x:Name="cmbTestType" IsDropDownOpen="False" IsEditable="False" IsEnabled="True" IsReadOnly="False" IsSynchronizedWithCurrentItem="True" Margin="19,3,37,6" SelectedIndex="0" StaysOpenOnEdit="False" Grid.Column="1" SelectionChanged="cmbTestType_SelectionChanged" Width="300" />
                                </Grid>
                                <Grid Height="230" x:Name="grdMstest" Visibility="Collapsed">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="269"></ColumnDefinition>
                                        <ColumnDefinition Width="362*"></ColumnDefinition>
                                        <ColumnDefinition Width="51"></ColumnDefinition>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="30"></RowDefinition>
                                        <RowDefinition Height="30"></RowDefinition>
                                        <RowDefinition Height="30"></RowDefinition>
                                        <RowDefinition Height="30"></RowDefinition>
                                        <RowDefinition Height="30"></RowDefinition>
                                        <RowDefinition Height="30"></RowDefinition>
                                        
                                    </Grid.RowDefinitions>
                                    <TextBlock Margin="53,6,12,6">Test Container</TextBlock>
                                    <TextBlock Margin="54,6,10,6" Grid.Row="1">Run Config</TextBlock>
                                    <TextBlock Margin="54,6,10,6" Grid.Row="2">Result File</TextBlock>
                                    <TextBlock Margin="54,6,10,6" Grid.Row="3">User Defined Scheme</TextBlock>
                                    <TextBlock Margin="54,6,10,6" Grid.Row="4">File Extraction Path</TextBlock>
                                    
                                    <TextBox x:Name="txtTestContainer" Margin="18,4,26,6" Grid.Column="1" Width="300" TextChanged="txtTestContainer_TextChanged" />
                                    <TextBox x:Name="txtRunConfig" Margin="18,4,26,6" Grid.Column="1" Grid.Row="1" Width="300" TextChanged="txtRunConfig_TextChanged" />
                                    <TextBox x:Name="txtResultsFile" Margin="18,4,26,6" Grid.Column="1" Grid.Row="2" Width="300" TextChanged="txtResultsFile_TextChanged" />
                                    <TextBox x:Name="txtConfigName" Margin="18,4,26,6" Grid.Column="1" Grid.Row="3" Width="300" TextChanged="txtConfigName_TextChanged" />
                                    <TextBox x:Name="txtFileExtractionPath" Margin="18,4,26,6" Grid.Column="1" Grid.Row="4" Width="300" TextChanged="txtFileExtractionPath_TextChanged" />
                                    <Button x:Name="btnSubmit" Content="Submit" Grid.Column="1" Grid.Row="5" Margin="0,2,87,8" HorizontalAlignment="Right" Width="52" Click="btnSubmit_Click"></Button>
                                    <Button x:Name="btnCancel" Width="49"  Content="Cancel" Grid.Column="1" Grid.Row="5" HorizontalAlignment="Right" Margin="0,2,36,8" Click="btnCancel_Click"></Button>
                                    <Image x:Name="imgTestContainer" MouseDown="imgTestContainer_MouseDown" Margin="0,8,0,0" Grid.Column="2" HorizontalAlignment="Left" Width="20" Height="18" VerticalAlignment="Top">
                                        <Image.Source>
                                            <BitmapImage DecodePixelWidth="100" UriSource="C:\Yuvaraj\Code\MSCoverageReport\XTCoverInstrumentor\images\help.gif"/>
                                        </Image.Source>
                                    </Image>
                                    <Image x:Name="imgTestConfig" MouseDown="imgTestConfig_MouseDown" HorizontalAlignment="Left" Margin="0,9,0,7" Width="20" Height="18"  Grid.Row="1" Grid.Column="2">
                                        <Image.Source>
                                            <BitmapImage DecodePixelWidth="100" UriSource="C:\Yuvaraj\Code\MSCoverageReport\XTCoverInstrumentor\images\help.gif" />
                                        </Image.Source>
                                    </Image>
                                    <Image x:Name="imgTestOutput" MouseDown="imgTestOutput_MouseDown" HorizontalAlignment="Left" Margin="0,9,0,6" Width="20" Height="18" Grid.Row="2" Grid.Column="2">
                                        <Image.Source>
                                            <BitmapImage DecodePixelWidth="100" UriSource="C:\Yuvaraj\Code\MSCoverageReport\XTCoverInstrumentor\images\help.gif" />
                                        </Image.Source>
                                    </Image>
                                    <Image x:Name="imgScheme" MouseDown="imgScheme_MouseDown" HorizontalAlignment="Left" Margin="0,9,0,6" Width="20" Height="18" Grid.Row="3" Grid.Column="2">
                                        <Image.Source>
                                            <BitmapImage DecodePixelWidth="100" UriSource="C:\Yuvaraj\Code\MSCoverageReport\XTCoverInstrumentor\images\help.gif" />
                                        </Image.Source>
                                    </Image>
                                    <Image x:Name="imgFilePath" MouseDown="imgFilePath_MouseDown" HorizontalAlignment="Left" Margin="0,6,0,9" Width="20" Height="18" Grid.Column="2" Grid.Row="4">
                                        <Image.Source>
                                            <BitmapImage DecodePixelWidth="100" UriSource="C:\Yuvaraj\Code\MSCoverageReport\XTCoverInstrumentor\images\help.gif" />
                                        </Image.Source>
                                    </Image>
                                </Grid>
                                <Grid x:Name="grdNUnit" Visibility="Collapsed">
                                 <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="269"></ColumnDefinition>
                                        <ColumnDefinition Width="362*"></ColumnDefinition>
                                        <ColumnDefinition Width="51"></ColumnDefinition>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="30"></RowDefinition>
                                        <RowDefinition Height="30"></RowDefinition>
                                        <RowDefinition Height="30"></RowDefinition>
                                        <RowDefinition Height="30"></RowDefinition>
                                        <RowDefinition Height="30"></RowDefinition>
                                        <RowDefinition Height="30"></RowDefinition>
                                        <RowDefinition Height="30"></RowDefinition>
                                    </Grid.RowDefinitions>
                                    <TextBlock Margin="53,6,12,6" Text="NUnit EXE path" Grid.Column="0" Grid.Row="0"></TextBlock>
                                    <TextBlock Margin="53,6,12,6" Text="Assemblies list" Grid.Column="0" Grid.Row="1"></TextBlock>
                                    <TextBlock Margin="53,6,12,6" Text="Test Container" Grid.Column="0" Grid.Row="2"></TextBlock>
                                    <TextBlock Margin="53,6,12,6" Text="Result File" Grid.Column="0" Grid.Row="3"></TextBlock>
                                    <TextBlock Margin="53,6,12,6" Text="File Extraction Path" Grid.Column="0" Grid.Row="4"></TextBlock>
                                    <TextBlock Margin="53,6,12,6" Text="DLL Location" Grid.Column="0" Grid.Row="5"></TextBlock>
                                    <TextBox x:Name="txtNUnitEXEPath" Margin="18,4,26,6" Grid.Column="1" Grid.Row="0" Width="300" TextChanged="txtNUnitEXEPath_TextChanged" />
                                    <TextBox x:Name="txtAssName" Margin="18,4,26,6" Grid.Column="1" Grid.Row="1" Width="300" TextChanged="txtAssName_TextChanged" />
                                    <TextBox x:Name="txtNunitTestContainer" Margin="18,4,26,6" Grid.Column="1" Grid.Row="2" Width="300" TextChanged="txtNunitTestContainer_TextChanged" />
                                    <TextBox x:Name="txtResultFile" Margin="18,4,26,6" Grid.Column="1" Grid.Row="3" Width="300" TextChanged="txtResultFile_TextChanged" />
                                    <TextBox x:Name="txtFileExtPath" Margin="18,4,26,6" Grid.Column="1" Grid.Row="4" Width="300" TextChanged="txtFileExtPath_TextChanged" />
                                    <TextBox x:Name="txtDLLlocation" Margin="18,4,26,6" Grid.Column="1" Grid.Row="5" Width="300" TextChanged="txtDLLlocation_TextChanged"/>
                                    <Button x:Name="btnNUnitSubmit" Content="Submit" Grid.Column="1" Grid.Row="6" Margin="0,2,87,8" HorizontalAlignment="Right" Width="52" Height="20" VerticalAlignment="Top" Click="btnNUnitSubmit_Click"></Button>
                                    <Button x:Name="btnNUnitCancel" Width="49"  Content="Cancel" Grid.Column="1" Grid.Row="6" HorizontalAlignment="Right" Margin="0,2,36,8" Height="20" VerticalAlignment="Top" Click="btnNUnitCancel_Click"></Button>
                                    <Image x:Name="imgNUnitExePath" MouseDown="imgNUnitExePath_MouseDown"  Margin="0,8,0,0" Grid.Column="2" Grid.Row="0" HorizontalAlignment="Left" Width="20" Height="18" VerticalAlignment="Top">
                                        <Image.Source>
                                            <BitmapImage DecodePixelWidth="100" UriSource="C:\Yuvaraj\Code\MSCoverageReport\XTCoverInstrumentor\images\help.gif"/>
                                        </Image.Source>
                                    </Image>
                                    <Image x:Name="imgAssName" MouseDown="imgAssName_MouseDown"  Margin="0,8,0,0" Grid.Column="2" Grid.Row="1" HorizontalAlignment="Left" Width="20" Height="18" VerticalAlignment="Top">
                                        <Image.Source>
                                            <BitmapImage DecodePixelWidth="100" UriSource="C:\Yuvaraj\Code\MSCoverageReport\XTCoverInstrumentor\images\help.gif"/>
                                        </Image.Source>
                                    </Image>
                                    <Image x:Name="imgNUnitTestContainer" MouseDown="imgNUnitTestContainer_MouseDown"  Margin="0,8,0,0" Grid.Column="2" Grid.Row="2" HorizontalAlignment="Left" Width="20" Height="18" VerticalAlignment="Top">
                                        <Image.Source>
                                            <BitmapImage DecodePixelWidth="100" UriSource="C:\Yuvaraj\Code\MSCoverageReport\XTCoverInstrumentor\images\help.gif"/>
                                        </Image.Source>
                                    </Image>
                                    <Image x:Name="imgResultFile" MouseDown="imgResultFile_MouseDown"  Margin="0,8,0,0" Grid.Column="2" Grid.Row="3" HorizontalAlignment="Left" Width="20" Height="18" VerticalAlignment="Top">
                                        <Image.Source>
                                            <BitmapImage DecodePixelWidth="100" UriSource="C:\Yuvaraj\Code\MSCoverageReport\XTCoverInstrumentor\images\help.gif"/>
                                        </Image.Source>
                                    </Image>
                                    <Image x:Name="imgFileExtPath" MouseDown="imgFileExtPath_MouseDown"  Margin="0,8,0,0" Grid.Column="2" Grid.Row="4" HorizontalAlignment="Left" Width="20" Height="18" VerticalAlignment="Top">
                                        <Image.Source>
                                            <BitmapImage DecodePixelWidth="100" UriSource="C:\Yuvaraj\Code\MSCoverageReport\XTCoverInstrumentor\images\help.gif"/>
                                        </Image.Source>
                                    </Image>
                                    <Image x:Name="imgDLLlocation" MouseDown="imgDLLlocation_MouseDown"  Margin="0,8,0,0" Grid.Column="2" Grid.Row="5" HorizontalAlignment="Left" Width="20" Height="18" VerticalAlignment="Top">
                                        <Image.Source>
                                            <BitmapImage DecodePixelWidth="100" UriSource="C:\Yuvaraj\Code\MSCoverageReport\XTCoverInstrumentor\images\help.gif"/>
                                        </Image.Source>
                                    </Image>
                                </Grid>
                            </StackPanel>
                        </Expander.Content>
                    </Expander>
                 </StackPanel>
            </Border>
      </Border>

    </Grid>
</Window>
